package stringhomework;

public class indexDemo {
    public static void main(String[] args) {
        String str="thinking in java";
        int start=str.indexOf("in");
        System.out.println(start);
        int end=str.lastIndexOf("in");
        System.out.println(end);
    }
}
